﻿using System.ComponentModel;

namespace Service.Framework.Packet
{
    /// <summary>
    /// 状态码
    /// </summary>
    public enum StatusCode
    {
        /// <summary>
        /// 请求成功
        /// </summary>
        [Description("请求成功")]
        OK = 200,

        /// <summary>
        /// 服务执行时发生的异常,故意引发的异常
        /// </summary>
        [Description("服务执行时发生的异常,故意引发的异常")]
        KnowException = 500,

        /// <summary>
        /// 服务调用传入的参数无效
        /// </summary>
        [Description("服务调用传入的参数无效")]
        ArgumentInvaild = 0x10004,

        /// <summary>
        /// 无查询结果
        /// </summary>
        [Description("无查询结果")]
        NoQueryResults = 0x10007,

        /// <summary>
        /// 系统配置错误
        /// </summary>
        [Description("系统配置错误")]
        ConfigError = 0x10009,

        /// <summary>
        /// 数据异常
        /// </summary>
        [Description("数据异常")]
        DataExpcetion = 0x10011,

        /// <summary>
        /// 重复操作
        /// </summary>
        [Description("重复操作")]
        RepeatOperation = 0x10012,

        /// <summary>
        /// 外部接口错误
        /// </summary>
        [Description("外部接口错误")]
        ExternalInterfaceError = 0x10013,


        /// <summary>
        /// 远程调用失败
        /// </summary>
        [Description("远程调用失败")]
        RemoteCallFail = 0x10200,


        /// <summary>
        /// 非法业务操作
        /// </summary>
        [Description("非法业务操作")]
        IllegalBussiness = 0x10300
    }
}
